//
//  PTTooBar.h
//  封装TableBar
//
//  Created by 贾旭周 on 15/12/11.
//  Copyright © 2015年 gm-iMac-iOS-03. All rights reserved.
//

#import <UIKit/UIKit.h>

/// 底部导航类型
typedef NS_ENUM(NSUInteger, BottomIndex)
{
    BottomIndex_A = 0,
    BottomIndex_B,
    BottomIndex_C
};


/// 底部导航点击代理
@protocol GMBottomViewIndexDelegate <NSObject>


/*!
 *  @brief  Bottom中Button的回调事件
 *  @param bottomIndex 当前选中button的index
 *  @param lastIndex   上一个选中的button的index
 */
- (void)bottomViewIndexDelegate:(BottomIndex)bottomIndex lastSelectedTabIndex:(BottomIndex)lastIndex;

@end


@interface TPTooBar : UIImageView

/// 底部按钮标题
@property (nonatomic, strong) NSArray *aryTitle;
/// 未选择的图片
@property (nonatomic, strong) NSArray *aryUnSelectImages;
/// 选择的图片展示
@property (nonatomic, strong) NSArray *arySelectImages;

@property(nonatomic,weak)id <GMBottomViewIndexDelegate> delegate;

/// 顶部的细线
@property(nonatomic, strong) UIView *viewLine;

/// 是否有底部横线
@property (nonatomic, assign) BOOL isHasFootLine;

/// 初始化完成之后 创建视图
- (void)drawNecessaryView;

/// 手动设置导航跳转
- (void)setBottomBtnClicked:(BottomIndex)bottomIndex;

@end
